import 'package:spring_fairy/util/amap_api.dart';
import 'package:latlong2/latlong.dart';

void main() async {
  String string = "JSESSIONID=41DA045D82969CC2A41D24AB20FBE6FC; Path=/api; HttpOnly,token=ff4fd59b-d356-44fd-8e98-b373bfb06ef8; Max-Age=2419200; Expires=Tue, 08-Jul-2025 07:51:53 GMT; Path=/; HttpOnly";
  RegExp regExp = RegExp(r"JSESSIONID=\w+;");
  print(regExp.allMatches(string).first.group(0));


  RegExp regExp2 = RegExp(r"token=(\w+\-*)*;");
  print(regExp2.allMatches(string).first.group(0));
}